package com.xiangxiao.rpan.utils.io;

import java.io.InputStream;

/**
 * 资源读取类
 * @auther xiangxiao
 * @email 573768011@qq.com
 * @data 2022/12/29 17:19
 */
public class Resources {
  /**
   * 读取资源为输入流
   *
   * @param filePath
   * @return
   */
  public static InputStream readFileAsInputStream(String filePath) {
    return Resources.class.getClassLoader().getResourceAsStream(filePath);
  }
}
